﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Commerce.Base.Ubl.DataType
{
    /// <summary>
    /// Numeric information that is assigned or is determined by calculation, counting, or sequencing. It does not require a unit of quantity or unit of measure.
    /// </summary>
    public class Percent : Numeric
    {
        public Percent(System.Decimal value)
            : base(value)
        { }

        public static implicit operator Percent(System.Decimal value)
        {
            return new Percent(value);
        }

        public static implicit operator System.Decimal(Percent percent)
        {
            return percent.Value;
        }
    }
}
